#! /bin/bash

checkError() {
    error=$?

    if [ $error -ne 0 ]; then
        echo "found error: $error"
        exit $error
    fi
}

program_name=my-qt

pushd ./dist
echo "packaging"
rm ../${program_name}.7z
"C:\Program Files\7-Zip\7z.exe" a ./${program_name}.7z . -x!.vs\* -x!.git\* -x!data\* -x!doc\* -x!x64\*

explorer .
popd
